package com.ktg.mes.erpClient.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ktg.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: Erp-客户档案
 * @Author: jeecg-boot
 * @Date:   2022-08-14
 * @Version: V1.0
 */
@Data
@TableName("Customer")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Customer ERP 对象", description="Customer-客户档案")
public class ErpCustomer implements Serializable {
    private static final long serialVersionUID = 1L;

    /**更新人*/
    @ApiModelProperty(value = "更新人")
    @TableField(value = "cModifyPerson")
    private String updateBy;

    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    @TableField(value = "dModifyDate")
    private Date updateTime;

    /** 客户编码 */
    @TableField(value = "cCusCode")
    private Long clientId;

    /** 客户名称 */
    @Excel(name = "客户名称")
    @TableField(value = "cCusName")
    private String clientName;

    /** 客户简称 */
    @Excel(name = "客户简称")
    @TableField(value = "cCusAbbName")
    private String clientNick;

    /** 统一社会信用代码 */
    @Excel(name = "统一社会信用代码")
    @TableField(value = "cCusRegCode")
    private String creditCode;

    /** 客户类型 */
    @Excel(name = "客户类型")
    @TableField(value = "cCCCode")
    private String clientType;

    /** 所属行业  */
    @Excel(name = "所属行业 ")
    @TableField(value = "cTrade")
    private String cTrade;

    /** 客户地址 */
    @Excel(name = "客户地址")
    @TableField(value = "cCusAddress")
    private String address;

    /** 开户银行 */
    @Excel(name = "开户银行")
    @TableField(value = "cCusBank")
    private String cCusBank;

    /** 银行账号 */
    @Excel(name = "银行账号")
    @TableField(value = "cCusAccount")
    private String cCusAccount;


    /** 法人*/
    @Excel(name = "法人")
    @TableField(value = "cCusLPerson")
    private String cCusLPerson;

    /** 客户邮箱地址 */
    @Excel(name = "客户邮箱地址")
    @TableField(value = "cCusEmail")
    private String email;

    /** 客户电话 */
    @Excel(name = "客户电话")
    @TableField(value = "cCusPhone")
    private String tel;

    /** 联系人 */
    @Excel(name = "联系人")
    @TableField(value = "cCusPerson")
    private String contact1;

    /** 电话 */
    @Excel(name = "电话")
    @TableField(value = "cCusPhone")
    private String cCusPhone;

    /** 传真 */
    @Excel(name = "传真")
    @TableField(value = "cCusFax")
    private String cCusFax;

    /** 手机 */
    @Excel(name = "手机")
    @TableField(value = "cCusHand")
    private String cCusHand;


    /** 时间戳  */
    @TableField(value = "exPubufts")
    private Integer exPubufts;



}

